#!/bin/bash
/etc/puppetlabs/code/environments/production/modules/condorworknode/tests/get_ccs_info.py
if [ "$?" -ne "0" ]
then
  echo "ERROR"
  echo 'Error in create  exp group file or access mysql server.' |mail -s "Error update exp group file" shijy@ihep.ac.cn,yanxf@ihep.ac.cn
else 
    /bin/cp /tmp/exp_group.json /etc/puppetlabs/code/environments/production/modules/condorworknode/files/
fi
